﻿Namespace SchoolClick.Filters
    Public Class ConstructSubMenuAttribute
        Inherits ActionFilterAttribute

        Public Overrides Sub OnActionExecuting(filterContext As ActionExecutingContext)
            'Debemos de recuperar el Nombre del Menu parent donde se dio Click
            filterContext.Controller.ViewBag.ParentMenuName = filterContext.RouteData.Values("topmenu")
            MyBase.OnActionExecuting(filterContext)
        End Sub
    End Class
End Namespace
